import 'package:flutter/material.dart';
import 'package:wheel_of_fortune/utils/utils.dart';

class Info extends StatelessWidget {
  final name;
  final number;
  const Info({this.name = "Lily Smith",this.number = '09123456789',Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          CircleAvatar(
            foregroundColor:Color(0xFF3478F5,),
            radius: 18.5,
            backgroundImage: NetworkImage('https://www.ixiaolian.cc/file/ixiaolian/stage/ytime/avatar/eventcovers/remark_event5.jpg'),
          ),
          SizedBox(width: 15,),
          Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Text(this.name,
                style: TextStyle(color: whiteColor, fontSize: 15,fontFamily: 'Avenir Next LT Pro',),
              ),
              SizedBox(height: 5,),
              Text(this.number,
                style: TextStyle(color: whiteColor, fontSize: 12,fontFamily: 'Avenir Next LT Pro',),
              ),
              SizedBox(height: 7,),
              Container(
                height: 13,
                width: 73,
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(2),
                  gradient: const LinearGradient(
                      colors: [yellowColor, deepYellowColor]),
                ),
                child: Text("ESTABLISHED",
                  style: TextStyle(color: whiteColor, fontSize: 8,fontFamily: 'Avenir Next LT Pro',),
                ),
              ),
            ],
          ),
        ],
      ),
    );
  }
}
